<% if object.errors.any? %>
  <div id="error_explanation">
    <h2>
        <%= t("errors.explanation.title", :errors => pluralize(object.errors.count, t("errors.error.singular"), t("errors.error.plural")), :model => model_name) %>
    </h2>
    <p><%= t "errors.explanation.field_errors" %></p>
    <ul>
    <% object.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
<% end %>
